﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="AdmMessageManage.aspx.cs"
    Inherits="LIMS.Web.AdmMessageManage" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <div align="center">
        <table width="900" border="0" cellspacing="0" cellpadding="0">
            <tr>
                <td>
                </td>
                <td height="10" align="left" style="text-align: center; font-size: 24px;">
                    &nbsp;&nbsp;<strong>留言管理</strong>
                </td>
            </tr>
            <tr>
                <td height="30" align="left" style="width: 40px; text-align: center;">
                    &nbsp;&nbsp;<strong></strong>
                </td>
                <td height="30">
                    <div style="width: 660px; text-align: center; font-size: 20px; padding: 5px;">
                        <font size="2" style="font-size: 20px;">回复状态</font>&nbsp;
                        <asp:DropDownList ID="ddlMessageStatus" runat="server" AutoPostBack="True" Style="font-size: 20px;"
                            OnSelectedIndexChanged="ddlMessageStatus_SelectedIndexChanged">
                            <asp:ListItem Text="全部" Value="-1"></asp:ListItem>
                            <asp:ListItem Text="已处理" Value="1"></asp:ListItem>
                            <asp:ListItem Text="未处理" Value="0"></asp:ListItem>
                        </asp:DropDownList>
                    </div>
                </td>
            </tr>
            <tr>
                <td height="30" colspan="2" align="left">
                    <asp:Repeater ID="rpMessage" runat="server" >
                        <HeaderTemplate>
                            <table border="1" width="100%">
                                <tr align="center">
                                    <th width="4%">
                                        序号
                                    </th>
                                    <th width="7%">
                                        留言人
                                    </th>
                                    <th width="8%">
                                        留言时间
                                    </th>
                                    <th width="10%">
                                        留言标题
                                    </th>
                                    <th width="15%">
                                        详细内容
                                    </th>
                                    <th width="7%">
                                        是否回复
                                    </th>
                                    <th width="7%">
                                        回复人
                                    </th>
                                    <th width="15%">
                                        回复内容
                                    </th>
                                    <th width="10%">
                                        操作
                                    </th>
                                </tr>
                        </HeaderTemplate>
                        <ItemTemplate>
                            <tr align="center">
                                <td>
                                    <%#Container.ItemIndex+1 %>
                                </td>
                                <td>
                                    <%#StuIdToName(Eval("mesID").ToString())%>
                                </td>
                                <td>
                                    <%#Eval("mesTime", "{0:yyyy-MM-dd}")%>
                                </td>
                                <td align="center">
                                    <%# Eval("mesTitle")%>
                                </td>
                                <td align="left">
                                    <%#SubString(Eval("mesDetail").ToString(),15)%>
                                </td>
                                <td>
                                    <%#StatusCodeToWords( Eval("mesStatusCode"))%>
                                </td>
                                <td>
                                    <%#adminIdToName(Eval("mesAdminID"))%>
                                </td>
                                <td>
                                    <%#SubString(Eval("mesReply"),16)%>
                                </td>
                                <td align="center">
                                    回复、删除
                                </td>
                            </tr>
                        </ItemTemplate>
                        <FooterTemplate>
                            </table>
                        </FooterTemplate>
                    </asp:Repeater>
                </td>
            </tr>
        </table>
    </div>
    </form>
</body>
</html>
